package com.glsc.ngateway.shortmsg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//@ComponentScan(basePackageClasses = {WebLogService.class})
@ComponentScan(basePackages = {
        "com.glsc.ngateway.shortmsg", "com.glsc.ngateway.common.base",
        "com.glsc.ngateway.common.api.common",
        "com.glsc.ngateway.common.api.shortmsg", "com.glsc.ngateway.common.api.ldap"})
@EnableFeignClients(basePackageClasses = {com.glsc.ngateway.common.api.ldap.feign.IFeignLdapService.class,com.glsc.ngateway.common.api.shortmsg.feign.IFeignShortmsgService.class})
@EnableEurekaClient  // 启用 eureka client 相关默认配置，在 Edgware 以后的版本该注解可以省略
@SpringBootApplication
public class ShortMsgApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShortMsgApplication.class, args);
    }
}
